﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmbeddedLanguage
{
    public static class StringBuilderEx
    {

        public static void LF(this StringBuilder sb, bool ContinueLine, int Level)
        {
            LF(sb, ContinueLine, Level, null);
        }

        public static void LF(this StringBuilder sb, bool ContinueLine, int Level, string Comment)
        {
            if (sb == null) return;
            if (!ContinueLine)
            {
                sb.AppendLine("");
                sb.Append("\t".Repeat(Level));
            }
        }
    }
}
